
#include <time.h>
#include <iostream>
using namespace std;

#include "ProgCommon.h"


void SelvtSorttest()
{
    int y[10] = { 3, 2, 4, 1, 6, 9, 8, 7, 5, 0 };

    //SelectionSort( y, 10 );
    InsertSort( y, 10 );

    for ( int i=0; i<10; i++ )
        cout << y[i] << ' ';
    cout << endl;
}

int main()
{
    CLOCK_DECLARE;

    CLOCK_START; // {{{
    RAND_SEED;
    for ( int i=0; i<10; i++ ) {
        // float x = rand() * x / RAND_MAX;
        cout << RandomInt() << endl;
    }
    CLOCK_FINISH; // }}}

    float msec = CLOCK_OVERLAP_MS;

    cout << msec << " ms" << endl;

    int x, y;
    printf( "%04X", ConGetColor() );
    ConSetColor( FG_CYAN );
    printf( "%04X\n", ConGetColor() );
    ConSetColor( COLOR_DEFAULT );

    return 0;
}

